package com.cli.idempotent.service;

import com.cli.idempotent.exception.ServiceException;

import javax.servlet.http.HttpServletRequest;

/**
 * @author xiongmin
 * @version 0.0.1
 * @description Created by work on 2021/10/31 1:41 下午
 * @see
 */
public interface TokenService {

    /**
     * 创建Token
     * @return
     */
    String createToken();

    /**
     * 校验Token是否失效
     * @param request
     * @return
     */
    boolean checkToken(HttpServletRequest request) throws ServiceException;

}
